var common = require('../../common');
var pool = require('../index');
var mysql = require('mysql');
var YjxBaseModel = require('./YjxBaseModel');
var CONFIG = require('../../config');


var YjxOrgModel = function (obj) {
    YjxBaseModel.call(this,obj);

    //`org_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '组织id',
    //`name` varchar(100) NOT NULL DEFAULT '' COMMENT '组织名称',
    //`name_en` varchar(100) NOT NULL DEFAULT '' COMMENT '组织名称(英文)',
    //`state` int(2) NOT NULL DEFAULT '1' COMMENT '状态:  1新建,2审核中,3审核失败,4审核通过',
    //`type` bigint(20) NOT NULL DEFAULT '0' COMMENT '组织类型: 100示界港; 200(预留); 300投放方; 400合作方',
    //`thumb` text NOT NULL COMMENT '缩略图',
    //`desc` text NOT NULL COMMENT '简介',
    //`create_time` datetime NOT NULL,
    //`update_time` datetime NOT NULL,
    //`update_by` varchar(50) NOT NULL DEFAULT '',
    //`del_flg` int(1) NOT NULL DEFAULT '0',

};

YjxOrgModel.prototype = new YjxBaseModel();

// 取得表名
YjxOrgModel.prototype.getTableName = function(){
    return 'yjx_org';
};
// 取得查询语句中where 后面匹配主键的条件（需要各派生类进行重载）
YjxOrgModel.prototype.getWhereConditionOfKeyEqual = function(){
    return 'org_id='+this.org_id;
};



module.exports = YjxOrgModel;

